#!/usr/bin/env python
# -*- coding:utf-8 -*-
import collections
q = collections.deque()
q.append(1)
q.append(2)
q.append(33)

print q.count(2)
print q.popleft()
print q